from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

from info import create_app, db, models
# from info import create_app, db
# from flask_script import Manager
# from flask_migrate import Migrate, MigrateCommand

app = create_app("develop")

manage = Manager(app)
Migrate(app, db)
manage.add_command("db", MigrateCommand)

# 调用app的run方法启动Flask应用程序
if __name__ == "__main__":
    manage.run()